using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using CoachingOrganizer.Logic.Models.Tools.MoodLevel;
using CoachingOrganizer.iOS.Controllers.Tools.MoodLevel;

namespace CoachingOrganizer.iOS.DataSources.Tools.MoodLevel
{
    public class MoodDaysDataSource : UIPickerViewModel
    {
        private readonly UIPickerView _view;
        private readonly MoodLevelInputDetailsViewController _controller;
        private readonly MoodLevelModel _model;

		public MoodDaysDataSource(UIPickerView view, MoodLevelInputDetailsViewController controller, MoodLevelModel model)
        {
            _view = view;
            _controller = controller;
            _model = model;
        }

        public override int GetRowsInComponent(UIPickerView picker, int component)
        {
            return _model.Days == null ? 0 : _model.Days.Length;
        }

        public override string GetTitle(UIPickerView picker, int row, int component)
        {
            return _model.Days[row].Date.ToString();
        }
    }
}